package cc.rico.guava.eventbus;

import com.google.common.eventbus.Subscribe;

/**
 * @Author: Dell
 * @Date: 2018/12/25
 * @Description:
 */
public class EventListener {

    private String lastMessage = "NULL";

    @Subscribe
    public void listen(TestEvent event) {
        System.out.println("EventListener message = ".concat(event.getMessage()));
        lastMessage = event.getMessage();
    }

    public String getLastMessage() {
        return lastMessage;
    }

}
